package nl.mkmedia.tuio {
	import flash.geom.Point;
	import flash.display.DisplayObject;

	/**
	 * @author Mingoes Kukupessy (mingoes at gmail dot com)
	 */
	public class TUIOPoint extends Point{
		
		public var id:int;
		public var objectUnder:DisplayObject;
		public var startX : Number;
		public var startY : Number;
		public var oldX:Number;
		public var oldY:Number;
		public var dX : Number;
		public var dY : Number;
		public var localX:Number;
		public var localY:Number;
		public var alive:Boolean = false;
		
		public function TUIOPoint(id:int, rawX:Number, rawY:Number)
		{
			super(rawX, rawY);
			this.id = id;
			alive = true;
			startX = rawX;
			startY = rawY;
			trace('point created');
		}
		
		public function get oldPoint() : Point
		{
			return new Point(oldX, oldY);
		}
		
	}
}